package cn.smile.bean.form.login;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class LoginPhoneForm {

    /**
     * 用户手机号
     */
    @NotBlank(message = "请输入登录手机号")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号格式有误")
    private String phone;

    /**
     * 用户密码
     */
    @NotBlank(message = "请输入登录密码")
    private String password;
}
